﻿using System;
using System.Text.RegularExpressions;


class EmailAdresses
{
    static void Main()
    {
        string sentence = "Ivailo ivailo_milanov@abv.bg ; Todor todor_milushev@gmail.com" +
                          "Ivan ivan_georgiev@mail.bg";
        Console.WriteLine("All emails in the text are:");
        Console.WriteLine();
        foreach (var word in Regex.Matches(sentence, @"\w+@\w+\.\w+"))
        Console.WriteLine(word);
    }
}

